<script setup lang="ts">
const props = withDefaults(
  defineProps<{
    msg:string,
    ageList:Array<number>
  }>(),{
    msg:'hello',
    ageList:()=>[1,2]
  }
)



</script>

<template>
  <h1>{{ props.msg }}</h1>
  <h2 :key="key" v-for="(key,value) of ageList">{{ value }}</h2>
 
</template>

<style scoped>
.read-the-docs {
  color: #888;
}
</style>
